<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var gdx = {
            uname: '可可',
            type: '阿拉斯加',
            age: '5岁',
            color: '棕红色',
            jineng: function () {
               console.log('汪汪汪');
               console.log('演电影');
            }
        }
        console.log(gdx.uname)
        console.log(gdx['uname'])
        console.log(gdx.type)
        console.log(gdx['type'])
        console.log(gdx.age)
        console.log(gdx['age'])
        console.log(gdx.color)
        console.log(gdx['color'])
        gdx.jineng()

    </script>
</head>

<body>

</body>

</html>